'resource:///org/gnome/Shell/Extensions/ui/extension-error-page.ui';
static [Gtk.internalChildren] = [
+ 'descriptionLabel',
'expander',
'expanderArrow',
'revealer',
this._addCustomStylesheet();
- this._uuid = extension.uuid;
- this._url = extension.metadata.url || '';
+ const {uuid, name, url} = extension.metadata;
+
+ this._url = url;
this.action_set_enabled('page.show-url', this._url !== '');
+ const label =
+ /* Translators: %s is an extension name */
+ _('Unable to display the settings for “%s”.')
+ .format(GLib.markup_escape_text(name, -1));
+ this._descriptionLabel.set({label});
+
this._gesture = new Gtk.GestureClick({
button: 0,
exclusive: true,
// markdown for pasting in gitlab issues
let lines = [
- `The settings of extension ${this._uuid} had an error:`,
+ `The settings of extension ${uuid} had an error:`,
'```',
formattedError.replace(/\n$/, ''), // remove trailing newline
'```',
<property name="orientation">vertical</property>
<property name="spacing">12</property>
<child>
- <object class="GtkLabel">
- <property name="label" translatable="yes">We’re very sorry, but there’s been a problem: the settings for this extension can’t be displayed. We recommend that you report the issue to the extension authors.</property>
+ <object class="GtkLabel" id="descriptionLabel">
<property name="justify">center</property>
<property name="wrap">True</property>
+ <property name="use-markup">True</property>
</object>
</child>
<child>